.net 6 foreach only if not null

81

.net 6 foreach only if not null -

List<string> items = null;
items?.ForEach(item =>
{
    // ...
});

Comments

Submit
0 Comments